using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class PT_ServiceListEntity:AF_ORM.CORE.BaseEntity
    {
         public PT_ServiceListEntity()
         {
             tableName = "PT_ServiceList";


			 fieldInfos.Add(new FieldInfo("PT_ServiceList","CanEdit","Co the edit thanh tien hay ko ","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","CanEditGCN","Có thể edit chi GCN hay ko ","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","CanEditGiaBan","Có thể edit giá bán hay ko ","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","CanEditGiamGia","Có thể edit giảm giá hay ko ","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","CanEditNoiDung","Co the edit noi dung sửa chữa hay ko ","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","CreatedBy","CreatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","Id","Id","int",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","IsDeleted","IsDeleted","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","ServiceCode","ServiceCode","string",20,false,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","ServiceName","ServiceName","string",1024,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","ServiceType","SC,BH,RB","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","UpdatedBy","UpdatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceList","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected bool m_CanEdit;
		 protected bool m_CanEditGCN;
		 protected bool m_CanEditGiaBan;
		 protected bool m_CanEditGiamGia;
		 protected bool m_CanEditNoiDung;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected int m_Id;
		 protected bool m_IsDeleted;
		 protected string m_ServiceCode;
		 protected string m_ServiceName;
		 protected string m_ServiceType;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;

		 public bool CanEdit

          { 
                get { 
                    return m_CanEdit;}

                set{m_CanEdit=value;

                    GetField("CanEdit").Set();
                    GetField("CanEdit").IsNull=(value == null);           
                    }
          }
		 public bool CanEditGCN

          { 
                get { 
                    return m_CanEditGCN;}

                set{m_CanEditGCN=value;

                    GetField("CanEditGCN").Set();
                    GetField("CanEditGCN").IsNull=(value == null);           
                    }
          }
		 public bool CanEditGiaBan

          { 
                get { 
                    return m_CanEditGiaBan;}

                set{m_CanEditGiaBan=value;

                    GetField("CanEditGiaBan").Set();
                    GetField("CanEditGiaBan").IsNull=(value == null);           
                    }
          }
		 public bool CanEditGiamGia

          { 
                get { 
                    return m_CanEditGiamGia;}

                set{m_CanEditGiamGia=value;

                    GetField("CanEditGiamGia").Set();
                    GetField("CanEditGiamGia").IsNull=(value == null);           
                    }
          }
		 public bool CanEditNoiDung

          { 
                get { 
                    return m_CanEditNoiDung;}

                set{m_CanEditNoiDung=value;

                    GetField("CanEditNoiDung").Set();
                    GetField("CanEditNoiDung").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public int Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public bool IsDeleted

          { 
                get { 
                    return m_IsDeleted;}

                set{m_IsDeleted=value;

                    GetField("IsDeleted").Set();
                    GetField("IsDeleted").IsNull=(value == null);           
                    }
          }
		 public string ServiceCode

          { 
                get { 
                    return m_ServiceCode;}

                set{m_ServiceCode=value;

                    GetField("ServiceCode").Set();
                    GetField("ServiceCode").IsNull=(value == null);           
                    }
          }
		 public string ServiceName

          { 
                get { 
                    return m_ServiceName;}

                set{m_ServiceName=value;

                    GetField("ServiceName").Set();
                    GetField("ServiceName").IsNull=(value == null);           
                    }
          }
		 public string ServiceType

          { 
                get { 
                    return m_ServiceType;}

                set{m_ServiceType=value;

                    GetField("ServiceType").Set();
                    GetField("ServiceType").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }

}
}
